package com.code.day09.HashMap1;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
       HashMap<String, Integer> map = new HashMap<>();
       String target = new Scanner(System.in).next();
       for(int i = 0; i < target.length(); i++){
           char ch = target.charAt(i);
           String key = String.valueOf(ch);
           if(!map.containsKey(key)){
               map.put(key, 1);
           }
           else{
               map.put(key, map.get(key) + 1);
           }
       }
       Set<Map.Entry<String, Integer>> entries = map.entrySet();
       for(Map.Entry<String, Integer> entry : entries){
           System.out.println(entry.getKey() + " : " + entry.getValue());
       }
    }
}
